package cn.tworice.watermark.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import org.springframework.validation.annotation.Validated;

@Data
@Component
@ConfigurationProperties(prefix = "tworice.mark")
@Validated
public class MarkProperties {

    /**
     * 水印内容
     */
    private String name = "二饭";

    /**
     * 水印字体大小
     */
    private Integer fontSize = 20;

    /**
     * 水印透明度，0~255
     */
    private Integer a = 128;
}
